SET VER=05.04.02
SET PROD=iFinity.FriendlyUrlProvider
SET COMPILE=RELEASE
SET INSTALL_ZIP=%PROD%_%VER%_Install.zip
SET SOURCE_ZIP=%PROD%_%VER%_Source.zip

rem run stripping program to generate source

rem compile from output directory

del install /Q
md install
copy %PROD%\bin\%compile%\%PROD%.dll Install\
copy instructions\*.htm Install\
copy instructions\*.jpg Install\
copy instructions\*.config Install\

rem zip up the install file
"C:\program files\pkware\pkzipc.exe" -add Install\%INSTALL_ZIP% install\*.* -excl=*.zip
copy install\%INSTALL_ZIP% \\echidna\ifinity\Installs\%PROD%\

rem now make up source code package
cd %PROD%
"C:\program files\pkware\pkzipc.exe" -add -path=specify ..\Install\%SOURCE_ZIP% *.* -excl=*.zip,*.vspscc,*.user
"C:\program files\pkware\pkzipc.exe" -add -path=specify ..\Install\%SOURCE_ZIP% Properties\*.* -excl=*.zip,*.vspscc,*.user
"C:\program files\pkware\pkzipc.exe" -add -path=specify ..\Install\%SOURCE_ZIP% Entities\*.* -excl=*.zip,*.vspscc,*.user
cd..

copy install\%SOURCE_ZIP% \\echidna\ifinity\Installs\%PROD%\